<?php
$eplug_admin = TRUE;
include("../../../class2.php"); 
include(e_ADMIN."auth.php");

$folder = e_DOWNLOAD."mahou_shoujo_lyrical_nanoha_a/anime/";

if ($handler = opendir($folder))
{
	while (false !== ($file = readdir($handler)))
	{
		if (is_file($folder.$file))
		{
			$insert = array(
				"download_name" => $file,
				"download_url" => $file,
				"download_author" => 3,
				"download_filesize" => "".filesize($folder.$file),
				"download_project" => 65,
				"download_type" => "anime",
				"download_datestamp" => time(),
				"download_episode" => 1,
				"download_category" => 0,
				"download_news" => 0
			);
			
			print "<pre>";
			print_R($insert);
			print "</pre>";
			
			//$sql->db_Insert("hotn_animelist_download",$insert,TRUE);	
		}
	}
}

?>